package com.xxxcompany.wordbook.service;

import java.util.List;

import com.xxxcompany.wordbook.entity.Word;

public interface IWordService {

	/**
	 * 添加单词
	 * @param w
	 * @return
	 */
	public boolean add(Word w);
	
	/**
	 * 查询单词
	 * @return
	 */
	public List<Word> findAll();
	
	/**
	 * 查询用户单词
	 * @param userId
	 * @return
	 */
	public List<Word> findAll(int userId);
	
	/**
	 * 根据编号删除
	 * @param id
	 * @return
	 */
	public boolean removeById(int id);
	
	public boolean update(Word w);

	public Word findById(int id);
}